<?php
require_once 'Zend/Controller/Action.php';
require_once 'Reactivos/ReactivoProvider.class.php';

class GestionReactivos_ConsultaReactivosController extends Zend_Controller_Action {
	public function init() {
		$registry = Zend_Registry :: getInstance();
		$this->smarty = $registry->smarty;
		$this->smarty->assign('baseUrl', $this->getRequest()->getBaseUrl());
		$this->smarty->assign('moduleName', $this->getRequest()->getModuleName());
		$this->smarty->assign('controllerName', $this->getRequest()->getControllerName());
		$this->smarty->assign('actionName', $this->getRequest()->getActionName());
		$this->smarty->assign('subtitulo', 'Consulta de Reactivos');
	}
	public function indexAction() {
		$registry = Zend_Registry :: getInstance();
		$this->smarty->assign('reactivos',ReactivoProvider::getReactivos());
		$this->smarty->displayInMasterPage('gestionreactivos_consultareactivos_index.tpl', 'MasterPage.tpl');
	}
}
?>